import request from '@/utils/request'

// 查询历史数据data列表
export function listHisData(query) {
  return request({
    url: '/basic/hisData/list',
    method: 'get',
    params: query
  })
}

// 查询历史数据data详细
export function getHisData(id) {
  return request({
    url: '/basic/hisData/' + id,
    method: 'get'
  })
}

// 新增历史数据data
export function addHisData(data) {
  return request({
    url: '/basic/hisData',
    method: 'post',
    data: data
  })
}

// 修改历史数据data
export function updateHisData(data) {
  return request({
    url: '/basic/hisData',
    method: 'put',
    data: data
  })
}

// 删除历史数据data
export function delHisData(id) {
  return request({
    url: '/basic/hisData/' + id,
    method: 'delete'
  })
}

// 导出历史数据data
export function exportHisData(query) {
  return request({
    url: '/basic/hisData/export',
    method: 'get',
    params: query
  })
}